package j01arrays;

import java.util.Arrays;

public class J1 {
    public static void main(String[] args) {
        int[] arr = {1,3,5,7,9,11,55,77,99,100};
        System.out.println(Arrays.binarySearch(arr,77));
        System.out.println(Arrays.binarySearch(arr,-77));

        int[] arr2 = Arrays.copyOf(arr,2);
        System.out.println(Arrays.toString(arr2));

        int[] arr3 = new int[10];
        Arrays.fill(arr3,100);
        System.out.println("arr3 = " + Arrays.toString(arr3));
        System.out.println("=====");
        int[] arr8 = {3,5,1,7,2,5,3};
        Arrays.sort(arr8);
        System.out.println("arr8 = " + Arrays.toString(arr8));
    }
}
